package com.nq.service;


import com.github.pagehelper.PageInfo;
import com.nq.common.ServerResponse;
import com.nq.pojo.StFundApply;
import com.nq.pojo.UserStockSubscribe;

import javax.servlet.http.HttpServletRequest;

/**
 * 基金购买
 * @author lr
 * @date 2020/07/24
 */
public interface StFundApplyService {

    /**
     * 基金买入
     * @param fundId
     * @param purchaseAmount
     * @param request
     * @return
     */
    ServerResponse addUserFund(Integer fundId, String purchaseAmount, String payPwd, HttpServletRequest request);

    /**
     * 基金卖出
     * @param orderNumber
     * @param purchaseAmount
     * @param request
     * @return
     */
    ServerResponse sellUserFund(String orderNumber, String purchaseAmount, String payPwd, HttpServletRequest request);

    ServerResponse fundTransactionRecords(Integer pageNum, Integer pageSize, HttpServletRequest request);

    ServerResponse fundPositionRecord(Integer pageNum, Integer pageSize, HttpServletRequest request);

    ServerResponse holdFundPurchaseShare(String orderNumber, HttpServletRequest request);

    ServerResponse queryFundServiceCharge(Integer fundId, HttpServletRequest request);

    ServerResponse queryFundServiceChargeDetails(Integer chargeId, HttpServletRequest request);
}

